Don't use UNIX-specific printer objects on non-UNIX
authorErik van Pienbroek <epienbro@fedoraproject.org>
Sat, 13 Jul 2013 20:54:09 +0000 (22:54 +0200)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 31 Jul 2013 02:17:45 +0000 (10:17 +0800)
https://bugzilla.gnome.org/show_bug.cgi?id=704173

testsuite/gtk/defaultvalue.c

index f9609648cea9ad396072d050866c424fda0614a1..1d9c2af76f10c4612788680bf9bb6e9861fdcc99 100644 (file)
@@ -75,9 +75,11 @@ test_type (gconstpointer data)
     return;
 
   /* These can't be freely constructed/destroyed */
-  if (g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
-      g_type_is_a (type, GTK_TYPE_APPLICATION) ||
+  if (g_type_is_a (type, GTK_TYPE_APPLICATION) ||
       g_type_is_a (type, GDK_TYPE_PIXBUF_LOADER) ||
+#ifdef G_OS_UNIX
+      g_type_is_a (type, GTK_TYPE_PRINT_JOB) ||
+#endif
       g_type_is_a (type, gdk_pixbuf_simple_anim_iter_get_type ()) ||
       g_str_equal (g_type_name (type), "GdkX11DeviceManagerXI2") ||
       g_str_equal (g_type_name (type), "GdkX11Display") ||
@@ -227,10 +229,12 @@ G_GNUC_END_IGNORE_DEPRECATIONS
          strcmp (pspec->name, "job-name") == 0)
        continue;
 
+#ifdef G_OS_UNIX
       if (g_type_is_a (type, GTK_TYPE_PRINT_UNIX_DIALOG) &&
          (strcmp (pspec->name, "page-setup") == 0 ||
           strcmp (pspec->name, "print-settings") == 0))
        continue;
+#endif
 
       if (g_type_is_a (type, GTK_TYPE_PROGRESS_BAR) &&
           strcmp (pspec->name, "adjustment") == 0)